﻿using System;
using UnityEngine;

namespace Component.UI.View
{
    public class RewardView : MonoBehaviour
    {
        private GameObject train;

        private void Awake()
        {
            train = Resources.Load<GameObject>("Prefabs/UI/Train");
        }

        private void OnEnable()
        {
            if(Time.time > Time.timeSinceLevelLoad)
                Instantiate(train, transform.GetChild(1));
        }
    }
    
    
}